package com.example;

import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.channel.socket.DatagramPacket;


public class UdpServerHandler extends SimpleChannelInboundHandler<DatagramPacket> {


    @Override
    protected void channelRead0(ChannelHandlerContext ctx, DatagramPacket msg)
        throws Exception {

        final ByteBuf buf = msg.content();
        int length = buf.readableBytes();
        if (length != 700) {
            System.out.println("not right length");
        }
    }

}

